import request from '@/utils/request'

export default{
     getPackageStudentInfo(){
          return request({
               url: `/admin/user/student/getPackageStudentInfo`,
               method: 'get'
             })
     },
     getStudentList(pageSize,limit,obj) {
        return request({
            url: `/admin/user/student/page/${pageSize}/${limit}`,
            method: 'get',
            params: obj
          })
     },
     deleteStudent(id){
        return request({
            url: `/admin/user/student/delete/${id}`,
            method: 'delete'
          })
     },
     getStudentById(id){
        return request({
            url: `/admin/user/student/getById/${id}`,
            method: 'get'
          })
     },
     add(obj){
        return request({
            url: `/admin/user/student/add`,
            method: 'post',
            data: obj
          })
     },
     update(obj){
        return request({
            url: `/admin/user/student/update`,
            method: 'put',
            data: obj
          })
     }
}


